<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\datetime\DateTimePicker;

/* @var $this yii\web\View */
/* @var $model backend\models\GroupbuySearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="groupbuy-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
        'options'=> ['class'=>'form-inline'],
    ]); ?>

    <?php //= $form->field($model, 'id') ?>

    <?php //= $form->field($model, 'user1') ?>

    <?= $form->field($model, 'users')->label("用户名") ?>

    <?= $form->field($model, 'users')->label("手机号") ?>

    <?php //= $form->field($model, 'goodsid') ?>

    <?= $form->field($model, 'createtime')->widget(DateTimePicker::classname(),
        ['options' => ['placeholder' => '拼团开始时间'],
            'pluginOptions' => [
                'autoclose' => true,
                'todayHighlight' => true,
                'format' => 'yyyy-mm-dd',
                'inline' => true,
            ], 'layout'=>'{input}{picker}'
        ]) ?>

    <?php  echo $form->field($model, 'endtime')->widget(DateTimePicker::classname(),
        ['options' => ['placeholder' => '拼团成功时间'],
            'pluginOptions' => [
                'autoclose' => true,
                'todayHighlight' => true,
                'format' => 'yyyy-mm-dd',
                'inline' => true,
            ], 'layout'=>'{input}{picker}'
        ]) ?>

    <?php // echo $form->field($model, 'status')->textInput(['value'=>'1']) ?>

    <div class="form-group">
        <?= Html::submitButton('搜索', ['class' => 'btn btn-primary']) ?>
        <?php //= Html::resetButton('Reset', ['class' => 'btn btn-default']) ?>
        <?=Html::tag("div",'',['class'=>'help-block'])?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
